import { defineStore } from "pinia"
import { commonApi } from '@/api/common'
export const useFloorStore = defineStore({
    id: 'floor',
    state: () => ({
        floorNum: { build: '', floor: '' }
    }),
    actions: {
        async Setfloor(floor: any) {

            this.$patch({
                floorNum: floor,
            });
            commonApi({ toguys: 'thingjs', data: { floor: 'test' }, eventName: 'jumpBuild' }).then((res) => {
                console.log(res);

            })
        },
    },
})